package org.bookie.web.framework;

import org.apache.tapestry.engine.ExternalServiceParameter;
import org.apache.tapestry.engine.ILink;
import org.bookie.framework.CommonBasePage;

/**
 * Common class for all pages which can be requested via external service.
 * This class provides the functionality:
 * <li>Create the external link to the page</li> 
 * 
 * @author Igor Drobiazko 
 *
 */
public abstract class CommonExternalPage extends CommonBasePage{
	
	/**
	 * Get the external link to the page
	 * @param parameters external parameters 
	 * @return instance of ILink
	 */
    public ILink getExternalLink(Object[] parameters){
    	return getExternalService().getLink(false,
				new ExternalServiceParameter(getPageName(), parameters));
    	
    }
}
